package com.healthy.education.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.healthy.education.mapper.HealthLecturesMapper;
import com.healthy.education.domain.HealthLectures;
import com.healthy.education.service.IHealthLecturesService;

/**
 * 健康讲座Service业务层处理
 * 
 * @author 束伟
 * @date 2024-03-29
 */
@Service
public class HealthLecturesServiceImpl implements IHealthLecturesService 
{
    @Autowired
    private HealthLecturesMapper healthLecturesMapper;

    /**
     * 查询健康讲座
     * 
     * @param lectureId 健康讲座主键
     * @return 健康讲座
     */
    @Override
    public HealthLectures selectHealthLecturesByLectureId(Long lectureId)
    {
        return healthLecturesMapper.selectHealthLecturesByLectureId(lectureId);
    }

    /**
     * 查询健康讲座列表
     * 
     * @param healthLectures 健康讲座
     * @return 健康讲座
     */
    @Override
    public List<HealthLectures> selectHealthLecturesList(HealthLectures healthLectures)
    {
        return healthLecturesMapper.selectHealthLecturesList(healthLectures);
    }

    /**
     * 新增健康讲座
     * 
     * @param healthLectures 健康讲座
     * @return 结果
     */
    @Override
    public int insertHealthLectures(HealthLectures healthLectures)
    {
        return healthLecturesMapper.insertHealthLectures(healthLectures);
    }

    /**
     * 修改健康讲座
     * 
     * @param healthLectures 健康讲座
     * @return 结果
     */
    @Override
    public int updateHealthLectures(HealthLectures healthLectures)
    {
        return healthLecturesMapper.updateHealthLectures(healthLectures);
    }

    /**
     * 批量删除健康讲座
     * 
     * @param lectureIds 需要删除的健康讲座主键
     * @return 结果
     */
    @Override
    public int deleteHealthLecturesByLectureIds(Long[] lectureIds)
    {
        return healthLecturesMapper.deleteHealthLecturesByLectureIds(lectureIds);
    }

    /**
     * 删除健康讲座信息
     * 
     * @param lectureId 健康讲座主键
     * @return 结果
     */
    @Override
    public int deleteHealthLecturesByLectureId(Long lectureId)
    {
        return healthLecturesMapper.deleteHealthLecturesByLectureId(lectureId);
    }
}
